package org.zsk.cs.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.zsk.cs.domain.po.Notice;
import org.zsk.cs.domain.vo.IdentityAuthVo;
import org.zsk.cs.domain.vo.NoticeVo;
import org.zsk.cs.domain.vo.RightObligationVo;

/**
 * <p>
 * 公告 service
 * </p>
 *
 * @author zsk
 * @version 1.0
 * Created on 2020/03/26
 */
public interface NoticeService extends IService<Notice> {

    /**
     * @param noticeVo
     * @return 返回包含用户名的公告list
     * @throws Exception
     */
    public Page<NoticeVo> getWithUserNameByPage(NoticeVo noticeVo) throws Exception ;

    /**
     * @param noticeVo
     * @return 返回包含用户名的社区公告list
     * @throws Exception
     */
    public Page<NoticeVo> districtHeadGetWithUserNameByPage(NoticeVo noticeVo) throws Exception;

    /**
     * 社区长添加公告
     * @param noticeVo
     * @return
     * @throws Exception
     */
    public boolean districtHeadSave(NoticeVo noticeVo) throws Exception;

    /**
     * @param noticeVo
     * @return 返回居民的社区公告list
     * @throws Exception
     */
    Page<NoticeVo> residentGetWithUserNameByPage(NoticeVo noticeVo) throws Exception;
}
